package com.android.pinapressqugou.model.detail;

import com.android.pinapressqugou.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * 自定义回调，每个bean都写一个
 * Created by wzq on 2016/9/1.
 */
public abstract class paydetailCallback extends Callback<paydetail> {

    @Override
    public paydetail parseNetworkResponse(Response response, int id) throws Exception {

        String string = response.body().string();
        MyLog.e("cantuan",string);
        paydetail data = new Gson().fromJson(string, paydetail.class);

        return data;
    }
}
